Role of heteroatoms in precursor formation of zeolites