Evolution of nonlinearity in concrete and mortar samples under quasi-static loading