Root systems and purely elastic S-matrices