Vacancy-assisted diffusion in a honeycomb lattice and in a diamond lattice