A differential scheme for elastic properties of rocks with dry or saturated cracks