Computer modeling of stance and swing phase costs in human walking