Modeling of cavitating or ventilated flows using BEM