Numerical computation of constant mean curvature surfaces using finite elements