Shell-model calculations and realistic effective interactions