Atomistic simulations of nanoindentation in the presence of vacancies