Photophysics and photonics for organic electronics