Monte Carlo simulation of solvent effects on the threading of poly(ethylene oxide)