How human ancestors learned to walk on two legs