Mode solutions for a Klein-Gordon field in anti-de Sitter spacetime with dynamical boundary conditions of Wentzell type