Ion implantation of porous silicon