Linearity of halogen bonds