High-throughput computational X-ray absorption spectroscopy