Cell potential and spontaneous reactions