Codesign And Control Of Smart Powered Lower Limb Prostheses