Hybrid materials from organic polymers and inorganic salts