Amino acid correlation functions in protein structures