Effects of fabrication parameters on porous silicon structure with some potential applications