Calculation of ternary and quaternary III–V phase diagrams