The electrochemical theory of Berzelius: Part I: Origins of the theory