Characterization of domain structures from diffraction profiles in tetragonal ferroelastic ceramics