Relay cores, magnets and magnetic shielding