Impurity effects on trapped electron mode in tokamak plasmas