Intramolecular excimer formation and energy transfer in alternating carbazole copolymers