Real-time computer prediction of end points in controlled-potential coulometry