Mathematical simulation of laser induced melting and evaporation of multilayer materials