Explain the theoretical principles of magnetic materials and their behavior in different magnetic fields, focusing on domains, hysteresis, and applications in magnetic storage and sensors.