Source: https://www.colby.edu/chemistry/PChem/notes/GibbsPhaseRule.pdf