Static optimal estimation of joint accelerations for inverse dynamics problem solution