Determination of a fatigue curve as a function of electromyography and mechanical work