Magneto-elasticity in hydrogels containing Fe3O4 nanoparticles and their potential applications