Replicating the chemical composition of the binder for restoration of historic mortars as an optimization problem