X-ray spectroscopy of the high-mass X-ray binary 4U 1700-37