Quantifying allosteric effects in proteins