Avalanche photodiodes on silicon photonics