Learning Predictive Models for Ergonomic Control of Prosthetic Devices