An Expansion Planning Method for Extending Distributed Energy System Lifespan with ESS