Study of superconducting properties of oxygen deficient GdBa2Cu3O7−y by a heating cycle technique