Ferromagnetic and antiferromagnetic orderings in wurtzite diluted magnetic nanostructures