Laptop batteries lag in performance as they age. But you can slow down their deterioration by tweaking your Mac’s charging settings.