TRIPLE LAYER OPTIMIZATION OF DISTRIBUTED PHOTOVOLTAIC ENERGY STORAGE