Thermo-optical Effect in Phase-Change Nanophotonics