Self-consistent calculations on GaAs-AlxGa1-xAs heterojunctions