Fluid dynamics of acoustic and hydrodynamic cavitation in hydraulic power systems