Introduction to magnetic materials