New scientific method details history of ancient battles