Effects of inelasticity on the apparent depth and detectability of seismic discontinuities in the mantle