As head of America’s Barnes & Noble chain he reinvented the business, but could not compete with Amazon’s disruption