Strong nanopore pinning enhances Jc in YBa2Cu3O7−δ films