Theory and technology of pin-diodes on GaAs