Monte Carlo simulation of low-noise avalanche photodiodes with heterojunctions