Optimal Portfolio Execution Under Time-Varying Liquidity Constraints