Semiconductor-to-insulator transition of undoped-BaTiO3 in quenched state