A data acquisition system to detect bubble collapse time and pressure losses in water cavitation