Endophyte-mediated synthesis of silver nanoparticles and their biological applications