Nanoimprinting using release-agent-coated resins