Struggling Toshiba returns to black, avoids delisting