Synthesis of nanomaterials using self-assembled nanotemplates.