Mathematical models for electrochemistry: Law of mass action revisited