Real-Time Detection of Cavitation for Hydraulic Turbomachines