Solid-state photomultiplier in CMOS technology for gamma-ray detection and imaging applications