SFERA: An Integrated Circuit for the Readout of X and $\gamma $ -Ray Detectors