A COST OPTIMIZING ANALYSIS OF ENERGY STORAGE TECHNOLOGIES AND