The splitting of the isospin and spin-isospin dipole resonances in 12C