Economic evaluation and optimization of hybrid diesel/photovoltaic systems integrated to utility grids