SMS dit: A lattice Boltzmann model of ternary fluid mixtures