The magcode repository RobertsonWill 2017 Calculating the forces between magnets and coils and multipole magnet arrays