Acidity constants of anthracene derivatives in singlet and triplet excited states