Material and thickness selection of dielectrics for high transmittance terahertz window and metasurface