Thermal analysis of laser-induced thin-film melting and evaporation