Replication of diffractive-optical arrays via photocurable nanoimprint lithography