Spectroscopic characterization of ion collisions and trapping at laser-irradiated double-foil targets