Energy dependence of effective nucleon-nucleon interaction and position of the nucleon drip line