Defects control and origins of blue and green emissions in sol-gel ZnO thin films