Duke Energy Corp said it agreed to sell its Brazilian unit to clean energy company China Three Gorges Corp for about $1.2 billion…