The distribution of gains in uniformly multiplying avalanche photodiodes: Theory | Synapse