OPTIMIZATION OF CONFIGURATION AND OPERATION OF SHARED ENERGY STORAGE