Phase-change materials: The view from the liquid phase and the metallicity parameter