MagCAD: Tool for the Design of 3-D Magnetic Circuits