Design and synthesis of a self-assembled photochemical dyad based on selective imidazole recognition.