Everything You Need to Know About Avalanche Photodiodes