Cohesion of solids under laser irradiation