Humic acid assisted synthesis of silver nanoparticles and its application to herbicide detection