Duke Energy profit beats as power demand, rates rise