Imaging and spectroscopy of nanostructured surfaces