Dimensionality and mechanical properties of inorganic polymers