Mechanisms of enhancing magnetic properties of Zn1-xCoxO films prepared by the sol-gel method