Laser irradiation induced structural transformation in layered transition metal trichalcogenide nanoflakes