Correlation of elastic and mechanical properties of consolidated granular media during microstructure evolution induced by damage and repair