Two-dimensional analysis of PEM fuel cells