Large deviations approximation to normalizing constants in exponential models