Optimal Battery Operations and Design Considering Capacity Fade Mechanisms