RUL prediction for automatic machines: a mixed edge-cloud solution based on model-of-signals and particle filtering techniques