Prediction of the remaining useful life of mechatronic systems, using internal sensors