Modeling of a fuel cell