Galerkin methods for parabolic equations with nonlinear boundary conditions