Chromatin regulates genome-wide transcription factor binding affinities