Electrical and optical properties of heavily doped Mg- and Te-GaAs grown by liquid-phase epitaxy