Polymeric nanowires and nanopillars fabricated by template wetting