APiX: A Geiger-mode Avalanche Digital Sensor for Particle Detection