XMM-Newton and Chandra observations of the globular cluster NGC 6388