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