Valence-band and Cu 2p core-level electronic structures of Nd2−xCexCuO4 studied by X-ray photoemission