Elastic and thermoelastic scattering problems and non-homogeneous media