In situ core-level photoelectron spectroscopy study of indium segregation at GaInAs/GaAs heterojunctions grown by molecular-beam epitaxy