A method for detecting bubbles in two-phase gas-liquid flow