Generating a superdirective beam from metamaterials using Fourier optics