Optical characterization of AlxGa1-xN alloys (x < 0.7) grown on sapphire or silicon