Development and experimental validation of a simulation tool for a fuel cell based power system