Stochastic six-vertex model in a half-quadrant and half-line open ASEP