A study of the strong interaction effects on pionic 3d and 4f levels in 181Ta, natRe, natPt, 197Au, 208Pb, 209Bi and 237Np