Gas-induced swelling of beryllium implanted with deuterium ions