Elastic and inelastic scattering of oxygen ions from nickel and germanium isotopes