The thermal conductivity of polar gases in a magnetic field