Magnetic effects of defect pair formation in ZnO