Photon emission from nanostructures in an STM