X-ray spectroscopy of the Compton-thick Seyfert 2 ESO 138-G1