Compact and integrated TM-pass waveguide polarizer