Analyzing the performance of lithium-ion batteries for plug-in hybrid electric vehicles and second-life applications