Potential energy surfaces of MH2 (M=Co, Fe, and Cu)