Use of integrated energy spectra for thin‐layer recognition