Two-stage Early Prediction Framework of Remaining Useful Life for Lithium-ion Batteries