Fluorescence and magnetic properties of hydrogels containing Fe3O4 nanoparticles