The structure of nanocrystalline materials analyzed by X-ray Absorption Fine Structure: the case of porous silicon