Stationary measures for the log-gamma polymer and KPZ equation in half-space