Stabilizing Y‐junctions and ring structures through nitrogen substitution