The Maslov index in spectral theory: an overview