Techno-economic analysis of grid-tied energy storage