UV-cured transparent magnetic polymer nanocomposites