Modeling and management of pit lake water chemistry 1: Theory (Q147772)