Research and Development of a Position-Sensitive Scintillator Detector for $$\gamma $$ γ - and X-Ray Imaging and Spectroscopy