From Porous Silicon to Clustered Matrices: A Comparison of Local Structures