Isotope effect and the density-dependent nucleon-nucleon interaction