On asymptotic solution of systems of differential equations and their application in the study of spectra