Effects of encounters with field stars on the evolution of low-mass semidetached binaries