A strategy for adaptive tuning of a two-channel peroneal nerve stimulator for dropfoot