Terahertz Electromagnetic Wave Interaction With Mesoscopic Media