Modelistic and realistic interactions in the p, sd and pf nuclear shells