Intelligence enabled by 2D metastructures in antennas and wireless propagation systems