Optimal Peak Shaving Using Batteries at Datacenters: Charging Risk and Degradation Model | IEEE Conference Publication | IEEE Xplore