ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning