Nanoscale optical devices based on phase coherent electron transport