Health diagnosis and remaining useful life prognostics of lithium-ion batteries using data-driven methods