Rationalizing the Formation of Porosity in Mechanochemically-Synthesized Polymers