Ordered gas-bubble precursors to nanoporous layer formation in helium-implanted metals