Data-driven diagnosis of lithium-ion battery degradation under realistic usage conditions