Quantification of Sand Production by Use of a Pressure-Gradient-Based Sand Failure Criterion