Prediction of the yield strength and shrinkage of a diamond-containing composite with a porous matrix under pressure