Closed-Form Solutions for Control of Calcium Carbonate Precipitation