Critical exponent of ternary words with few distinct palindromes | Synapse