Preparation of a ferromagnetic barrier in YBa2Cu3O7–δ thinner than the coherence length