OPTIMAL PLANNING OF DISTRIBUTED GENERATION AND BATTERY ENERGY STORAGE