A two-phase model for the description of the influence of cracks on the P- and S-wave velocities in dry and saturated rock samples