Two-phase flows in gas-evolving electrochemical applications