For the Maya solar eclipses were a sign of heavenly clashes − and their astronomers kept sophisticated records to predict them