MathHay: An Automated Benchmark for Long-Context Mathematical Reasoning in LLMs