Numerical study of cavitating flow in orifices and its effect on spray characteristics