Architecture and 3D device simulation of a PIN diode-based Gamma radiation detector