Rational modification of the hierarchy of intermolecular interactions in molecular crystal structures by using tunable halogen bonds.