A Minimally Invasive Electromyography-based System for Pre-fall Detection