Fundamental studies and device application of ?-doping in GaAs Layers and in AlxGa1?xAs/GaAs heterostructures