Hyperfine potential energy curves of the heteronuclear diatomics HD, DT, and HT in an external magnetic field