Optical observations of the dissociation of fast molecules in thin foils