The effect of local symmetry on the energetic position of DX centres in (AlxGa1-x)As and Ga(As1-xPx) alloys