Explicit sampling of the unit cell shape for a more accurate estimation of the free energy profile for flexible crystals