Heteropolymers in a solvent at an interface