Text this: Shielded resistive electromagnets of arbitrary surface geometry using the boundary element method and a minimum energy constraint.