Electronic structure of perimidine