High-speed resonant-cavity SAM avalanche photodiodes