Preparation and properties of sol-gel derived nanostructured thin ceramic layers