X-ray spectroscopy of the ADC source X1822-371 with Chandra and XMM-Newton