Interplay between thermal and magnetic properties of polymer nanocomposites with superparamagnetic Fe3O4 nanoparticles