Statistics for Design of antennas based on metasurfaces at millimeters and terahertz waves