Text this: A theoretical method to analyze the effect of stress distribution on compressive strength of periodic lattices