Giant magnetoresistance in transition-metal-doped ZnO films