Lattice and electronic structure of YBa2Cu2PbOx superconductor