Gearboxes prognostics with application to tidal turbines