Microscopic approach to the nucleon-nucleon effective interaction and nucleon-nucleon scattering in symmetric and isospin-asymmetric nuclear matter