Determination of the optimal number of linked rigid-bodies of the trunk during walking and running based on Akaike's information criterion.