Micro/nano fabrication of polymer-based devices