Bioinspired synthesis and self-assembly of hybrid organic–inorganic nanomaterials