Modelling, Design Optimization and Control of Magnetorheological Dampers for Prosthetic Applications