An inter-nucleon potential deduced from shell model calculations