Lattice Boltzmann Simulation of Cavitating Flows