Nanoscale Surface Engineering for Photonics and Microfluidics