Nonreciprocal TE-TM mode converter with semiconductor guiding layer