The structure of macromolecules adsorbed on interfaces