Energy gaps and refractive indices of AlxGa1−xAs