cell emf calculation