Bioinspired synthesis of thermally stable and mechanically strong nanocomposite coatings