Statistics of local complexity in amino acid sequences and sequence databases