An optimization approach to selection of body segment parameters