Modifications in the microscopic structure of Ru and Pb phthalocyanine films by intermolecular interactions