The isotropic-nematic phase transition in a fluid of dipolar hard spherocylinders