Tuning magnetoresistance and exchange coupling in ZnO by doping transition metals