Optical quantification of multiphase flow near a hydrogen-evolving electrode