Step-by-step algorithm for the simulation of a faulted gearbox