Performance Characterization of a Silicon Drift Detector for Gamma Ray Imaging