Development of lithium battery capacity detection system