Spectral theory and applications. An elementary introductory course