Spectral analysis of the behavior and properties of solid surface layers. Nanotribospectroscopy