On the Generalization of Training-based ChatGPT Detection Methods