A monolithic array of 77 silicon drift detectors for X-ray spectroscopy and gamma-ray imaging applications