Nanometer-scale characterization of surface materials by STM light emission spectroscopy