Free energy calculations for crystals