Synthesis of nanomaterials for biomedical applications