Energetics of DX-center formation in GaAs and AlxGa1-xAs alloys.