Domain decomposition methods and deflated Krylov subspace iterations