Comparison between continuous and discrete subwavelength grating structures for antireflection surfaces