Uptake of light elements of nanoporous layers formed by helium ion implantation