AutoMathText: Autonomous Data Selection with Language Models for Mathematical Texts