Chemical etching effects in porous silicon layers