Citric acid extraction and purification