Single photon emission and detection at the nanoscale utilizing semiconductor nanowires