Implantation of Be, Cd, Mg and Zn in GaAs and GaAsl-xPx