Clinical factors affecting the distal margin in rectal cancer surgery