Design of twisted cavitating hydrofoil using a barotropic flow method