Determination of cation distribution in spinels by X-ray diffraction method