Synthesis method for the growth of nanomaterials