Inverse spectral problems for Dirichlet-to-Neumann operators