Barnes & Noble’s earnings lifted by digital content