Time series analysis of arm and forearm measurement for functional electrical stimulation control