Local and global energy barriers for chiral domain walls in synthetic antiferromagnet–ferromagnet lateral junctions