Determination of lattice parameter and elastic properties of porous silicon by X-ray diffraction