Gas−surface reactions on phthalocyanine thin films