Avalanche photodiode punch-through gain determination through excess noise analysis