Text this: Modeling AlGaN p-i-n photodiodes