Integrated multijunction GaAs photodetector with high output voltage