Correlation of electron and x-ray spectroscopies in nanoscale systems