Nuclear resonant scattering of gamma rays in Ni, Cd, Sn and Bi