Regulation of transcription factor binding specificity: from binding motifs to local DNA context