Text this: Mechanism of the semiconductor-insulator transition during ion-thermal treatment