Remaining Useful Life Estimation Using Functional Data Analysis