Near edge X-ray absorption fine structure spectroscopy as a tool to probe electronic and structural properties of thin organic films and liquids.