High frequency properties of YBCO thin films diagnosed by time-domain terahertz spectroscopy