Formation of langasite-type crystals in corresponding glasses and their second-order optical nonlinearities