Compounds (I) AaMm(YO4)yZz (I) are provided where A is at least one element selected from the alkaline metals, alkaline earth metals, a doping element and a hole, M being (T1-1TV), T being one or more transition metals and T′ being at least on element selected from Mg, Ca, Al, and the rare earths, 0≦t<1; Y is a least one element selected from S, Se, P, As, Si, or Ge and A1; Z is at least one element selected from F, O or OH; a, m, y, and z are whole numbers of zero or above such that the electric neutrality of the inorganic oxide of formula (I) is respected, a≧O; m>O; y>0; z≧O. The compounds (I) are obtained from precursors of the constituent elements by means of a method comprising the following steps: dispersion of said precursors in a liquid support comprising one or more ionic liquids made up of a cation and an anion the electric charges of which balance out to give a suspension of said precursors in said liquid, heating said suspension to a temperature of 25 to 380° C. and separation of said ionic liquid and the inorganic oxide of formula (I) from the reaction of said precursors.