Ferromagnetism in carbon-doped ZnO films from first-principle study