Thermal expansion, compressibility, and local structure of fluorides and oxyfluorides with the rhenium trioxide structure