Preparation of sol–gel-based nanostructured hybrid coatings; part 1: morphological and mechanical studies