Transition metals in ZnO nanocrystals: Magnetic and structural properties