Residential Energy Management System to Reduce Electricity Costs Considering the Lifespan of Energy Storage and Electric Vehicle Batteries | IEEE Conference Publication | IEEE Xplore