Bound states in ab initio approaches to quantum transport: A time-dependent formulation