Modeling fuel cell stack systems