Forecasting the propagation of pandemic shocks with a dynamic input-output model