Design, simulation, and fabrication of nanostructures for optoelectronic applications