Damage and contour quality in rock excavations for quarrying and tunnelling: assessment for properties and solutions for stability