Control of the critical current density in YBa 2 Cu 3 O 7 − δ films by means of intergrain and intragrain correlated defects