General approaches for shear-correcting coordinate transformations in Bragg coherent diffraction imaging. Part I.