Theoretical design of gradient coils with minimum power dissipation: accounting for the discretization of current density into coil windings.