Polymer based microscale and nanoscale technologies for optical and biomedical application