A numerical approach to copolymers at selective interfaces