Combined AFM and XPS analysis of complex surfaces