Hydrodynamic cavitation in microsystems. II. Simulations and optical observations