Molecular basis of CTCF binding polarity in genome folding