Characterization of thin polymer films using terahertz time-domain interferometry