Detecting AI-Generated Texts in Cross-Domains