A Monolithic Array of 77 Silicon Drift Detectors for X-ray Spectroscopy and Gamma-ray Imaging Applications