Net alkalinity and net acidity 1: Theoretical considerations