Resonances in the C-12(C-12,Be-8(g.s.))O-16 reaction and rotational states in Mg-24