Design of a PEM fuel cell system for residential application