Muscle contributions to limb stiffness and stability in three dimensions