Effect of 6Li resonances on near-barrier elastic scattering involving 28Si and 58Ni target nuclei