Electrical and optical properties of ceramic–polymer nanocomposite coatings