Gratings on porous silicon structures for sensing applications