The effect of transition layer inhomogeneity on the stability of compressible MHD fluids