basic electrochemistry implemented

I moved this function from its old location in parser_base.py as a static method to here since it seemed to fit better.  This also allows this function to be used without having imported parser_base.