How to detect aging of lithium battery pack