A widespread role of the motif environment in transcription factor binding across diverse protein families