Core-level and valence-band electronic states of Bi2Sr2CalxYxCu2Oy studied by photoemission