Application of the principle of congruence to ternary alkane mixtures