Two-phase flow characterization in PEM fuel cells using machine learning