A model to determine multiplication and noise in avalanche photodiodes with non-uniform electric field | Synapse