On a relation between the spectra of the Laplacian and the Dirichlet-to-Neumann map on manifolds