Study of the cubic to tetragonal transition in Mg2TiO4 and Zn2TiO4 spinels by 17O MAS NMR and Rietveld refinement of X-ray diffraction data