Transient simulation of heterojunction photodiodes-part II: analysis of resonant cavity enhanced photodetectors