Nook success helps cut Barnes & Noble loss