Spins of resonances in reactions of neutrons with 238U and 113Cd