Optimal choice of parameters for exponential biasing in Monte Carlo