Experimental Cu 3d electronic structure in high-Tc La1.85Ba0.12CuO4-x and YBa2Cu3O8-x superconductors