Electrical stimulator with mechanomyography-based real-time monitoring, muscle fatigue detection, and safety shut-off: a pilot study