Sol-gel derived hybrid organic/inorganic materials for sensor applications: synthesis and solid state NMR characterization