A study of inelastic interactions of deuterons and alphas in an emulsion at ?3.6 GeV/nucleon