Thermal behavior and thermal decomposition study of porphyrin polymers containing different spacer groups