Generalized theory of site-specific DNA-protein interactions.