Final Coalgebras are Ideal Completions of Initial Algebras