Multi-layered resist process in nanoimprint lithography for high aspect ratio pattern