Photoemission spectroscopy of GaAs:As photodiodes