Thermal poling of silica in air and under vacuum: the influence of charge transport on second harmonic generation