Spatial Complexity: Theory, Mathematical Methods and Applications