Influence of the preparation conditions on the diamagnetic response of high-T c YBa2Cu3O x superconductor