Control System Architecture for the Modular Prosthetic Limb