A general mathematical model for analyzing the performance of fuel-cell membrane-electrode assemblies