Supervisor Control for a Stand–Alone Hybrid Generation System Using Fuel Cell and Photovoltaic Energy