An effective nonsingular nucleon-nucleon interaction