Automating Thematic Analysis: How LLMs Analyse Controversial Topics