Porous silicon as a platform for gradient refractive index photonics