Capillary instability in nanoimprinted polymer films