Relation between macroscopic length change and the crystal structure in heavily neutron-irradiated ceramics