Equilibrium of Kirchhoff's rods subject to a distribution of magnetic couples