Predictions of diagenetic reactions in the presence of organic acids