Scratch, wear and corrosion resistant organic inorganic hybrid materials for metals protection and barrier