A window moving inverse dynamics optimization for biomechanics of motion