Flexible terahertz wire grid polarizer with high extinction ratio and low loss