Relationships between structure and low-dimensional magnetism in fluorides