Geometrical image distortion and aberration for long-range targets in a non-homogeneous atmosphere