Hydrogel nanocomposites as remote-controlled biomaterials