Structural effect on the static spin and charge correlations in La1.875Ba0.125-xSrxCuO4