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