Hybrid microgrid model based on solar photovoltaics with batteries and fuel cells system for intermittent applications