On the Unusual Properties of Halogen Bonds: A Detailed ab Initio