The broken-stick model for amino acid composition in proteins