Nanoimprint lithography using IR laser irradiation