Exact synthetic seismograms for an inhomogeneity in a layered elastic half-space