Optical and electrical properties of rare earth (Yb,Er) doped GaAs grown by molecular beam epitaxy