Optical properties of glasses and ceramics for Terahertz-technology