Prediction of two-phase choked-flow through safety valves