Investigation of surfaces by scanning photoemission microscopy