Converted domain calculation into finding half-space intersection thanks to Will, and replaced old, long-winded code with much more concise and efficient routine.
Merge branch 'master' of https://github.com/materialsproject/pymatgen

Conflicts:
	pymatgen/analysis/pourbaix/analyzer.py