A Physics-Based Crystallization Model for Retention in Phase-Change Memories