A generalised program for fuel cell systems simulation