Cell potential and current calculations