Do LLMs Understand Why We Write Diaries? A Method for Purpose Extraction and Clustering