Planar InP/InGaAsP three-dimensional graded-junction avalanche photodiode