Stabilization and destabilization of channel flow by location of viscosity-stratified fluid layer