A Mathematical Approach to the Problem of Force Distribution in Locomotion and Manipulation Systems Containing Closed Kineamtic Chains