Ionic order and cation valencies in the spinels Cu1.5Mn1.5O4 and CuGaMnO4