An interactive computer program for calculating ternary phase diagrams