Porous silicon fabrication based optoelectronic device