Fabrication of polymer nanocavities with tailored openings.