Finite two-distance-transitive graphs of valency 6