Wire-grid polarizer using nanoimprint lithography