Analysis of porous silicon