Effect of He induced nanovoids on B implanted in Si: the microscopic mechanism