An Adaptive Resample-Move Algorithm for Estimating Normalizing Constants