Energy of formation and dynamics of vacancies in nanometre-sized crystalline Au and Cu systems