Amino acid composition and hydrophobicity patterns of protein domains correlate with their structures