Grading U.S. Democracy Promotion in Iraq and Afghanistan

What accounts for largely failed democracy promotion exercises in Iraq and Afghanistan?