Determination of the chemical potential using energy-biased sampling.