split calculation of pH dependence and plotting into two files.
split calculation of pH dependence and plotting into two files.