GaAs pin diode