Detecting laser-induced phase change at the surface of solids via latent heat of melting with a photothermal deflection technique