A high-resolution silicon drift chamber for X-ray spectroscopy