Advanced Metamaterials for Beamforming and Physical Layer Processing