Ab initio potential energy surfaces for the 1A′ and 3A′ states of the MgH(X2Σ+) + H(2S) system