Nanostructured and nanoscale devices and sensors