SGI to emerge from bankruptcy