A CMOS analog front-end for silicon pixel detectors for gamma imaging in medical application