Percolation and electronic properties of superconducting (YBa2Cu3O7?? )1?x Ag x ceramics and thick films