Intermediate structure in the photoneutron and photofission cross sections in 238U and 232Th