A method to model the effect of pre-existing cracks on P-wave velocity in rocks