Release of hydrogen from co-existing layers of carbon and beryllium with vacuum heating