Realistic shell-model calculations and exotic nuclei