Evaluation of compositional nonrandomness in proteins