Mean-field and RPA approaches to stable and unstable nuclei with semi-realistic NN interactions