Reaction mechanisms and shell structure effects in 54Fe+6Li and 58Ni+d reactions at medium energies