Monte Carlo simulation of polymers at interfaces