Type I to type II transition at the interface between random and ordered domains of AlxGa1−xN alloys