Nanostructured and microstructured thin foils suitable for proton generation