Formation mechanism of ferroelastic Ba2TiGe2O8 and second order optical non-linearity in transparent crystallized glasses