Modeling of avalanche multiplication and noise in heterojunction avalanche photodiodes