Spinon confinement and the Haldane gap in SU(n) spin chains