Removal of hardness in fermentation broth by electrodialysis