Analyzing the Performance of GPT-3.5 and GPT-4 in Grammatical Error Correction