Ray amplitudes of seismic body waves in laterally inhomogeneous media