Vortex pinning by natural linear defects in thin films of YBa2Cu3O7