Structure–performance relations in nanocomposite coatings