magnetic materials and devices