The Theory And Automatic Design Of High Performance Thz Range Quasi-Optical Metallic Mesh Devices And Their Practical Realization