A boundary element method for the analysis of the flow around 3-D cavitating hydrofoils