Characterization of polycrystalline YBa2Cu3O7-x by bulk and microdistribution analysis