Hybrid organic–inorganic coatings based on thiol-ene systems