An approach for sizing a PV–battery–electrolyzer–fuel cell energy system