Nonlinear dimensionality reduction for human movement analysis with application to body machine interfaces