Revealing the charge-transfer interactions in self-assembled organic cocrystals: two-dimensional photonic applications.