Radiative capture of fast neutrons by 89Y and 140Ce