Simulation of the template release process based on fracture mechanics in nanoimprint lithography