Low-momentum nucleon-nucleon interaction and shell-model calculations