Operators with Wentzell boundary conditions and the Dirichlet-to-Neumann operator