Vacancy trapping mechanism for hydrogen bubble formation in metal