Optimal design of hybrid Photovoltaic system - Battery energy storage system and Diesel