A potential energy surface for the ground state of CH2