Hybrid organic-inorganic nanostructured formulation crosslinkable by solar radiation and method for preparation thereof