Estimation in exponential families with unknown normalizing constant