Resonance structure in the γγ invariant mass spectrum in pC, dC, and dCu interactions