Study of a sol-gel precursor and its evolution towards ZnO