Self-referential Monte Carlo method for calculating the free energy of crystalline solids.