Precipitation of magnetic oxides in polymers