Harvick wins Nationwide race at Richmond