Developing a control framework for self-adjusting prosthetic sockets incorporating tissue injury risk estimation and generalized predictive control