Coatings containing inorganic materials