The IRAM-30 m line survey of the Horsehead PDR. III. High abundance of complex (iso-)nitrile molecules in UV-illuminated gas