Lead phthalocyanine films by near edge X-ray absorption fine structure spectroscopy