Controlled promotion of crystallization for application to multilevel phase-change memory