Silicon avalanche tube for photon counting