Predicting structural and functional sites in proteins by searching for maximum-weight cliques