Hydrogen and helium trapping in hcp beryllium