Embedded Implementation of Rainflow-Counting for On-Line Predictive Maintenance