Quantification of human body movement for biomechanics and human robot interfaces