Design of Degradation-Conscious Optimal Dispatch Strategy for Home Energy Management System With Rooftop PV and Lithium-Ion Batteries