Controlled amorphous-to-crystalline transitions