Duke Energy reaches settlements in Carolinas merger plan