Photoemission and x-ray-absorption study of misfit-layered (Bi,Pb)-Sr-Co-O compounds: Electronic structure of a hole-doped Co-O triangular lattice