Home Depot buying supplier to professional contractors in a deal valued at about $18.25 billion