Approach to Control of a Polarized Reed Switch Using an Equivalent Solenoid Method