Porous materials with tunable mechanical properties