Electrical lithium battery performance model for second life applications