The optimization of mechanistic model parameters to predict undesired reactive precipitation of by-products