A high-speed avalanche photodiode