Chemical stability studies of thermally-carbonized porous silicon