Hybrid organic–inorganic materials as coatings for protecting wood