The use of solid state NMR to monitor reactions and doping in inorganic materials