Predicting cavitation damage in control valves