Substituent Effect on Porphyrin Film-Gas Interaction by Optical Waveguide: Spectrum Analysis and Molecular Dynamic Simulation