Optimization of a PEM fuel cell control system