How critically can an AI think? A framework for evaluating the quality of thinking of generative artificial intelligence