Slab-thickness dependence of polarization change of terahertz waves transmitted through metal hole arrays