Preparation and characterization of polystyrene-based magnetic nanocomposites. Thermal, mechanical and magnetic properties