Optimal sizing of a stand-alone photovoltaic system with energy management in isolated areas