Optimizing stimulation parameters in functional electrical stimulation of denervated muscles: a cross-sectional study