Advances in green synthesis of nanoparticles