X-Ray Photoemission Spectroscopy of Nd2-xCexCuO4-y and La2-xSrxCuO4