Crystal-Amorphous Transformation Via Defect-Templating in Phase-Change Materials