Correlation between the magnitude of the superconducting transition temperature and the normal-state magnetic susceptibility in Bi2Sr2CaCu2O8+y and Ti2Ba2CuO6+y as a function of oxygen content