Sol-gel synthesis and NMR characterization of ceramics