Duke Energy plans to spend $140 million in the Carolinas — $365 million company-wide — by 2013 on protective caps and liners at its ash landfills, according to Securities and Exchange Commission filings. The liners are intended to keep ash that is laden with arsenic, mercury and other metals from contaminating groundwater.