Surface-controlled reversal of the selectivity of halogen bonds