Structures and properties of spatially distorted porphyrins