Origin of photoluminescence from Er3+ centers in erbium doped GaAs and Al0.4Ga0.6 As grown by MBE