Stability and diffusion of interstitial and substitutional Mn in GaAs of different doping types