Anosov representations and dominated splittings