Transition from ferromagnetism to diamagnetism in undoped ZnO thin films