Magnetic polymer hybrid nanomaterials