Lithium-ion batteries wear down over time, but better charging habits can help you get more life out of your iPhone and Android.