Versatile p(3-sulfopropyl methacrylate) hydrogel reactor for the preparation of Co, Ni nanoparticles and their use in hydrogen production