Biological regulation of carbonate chemistry during diatom growth under different concentrations of Ca2+ and Mg2+