Duke Energy profit beats on lower maintenance costs