New organic-inorganic hybrid nanoporous phosphates and silicates: synthesis, characterization and their adsorption, optical and catalytic applications