Magnetic-field and temperature dependence of the critical current in thin epitaxial films of the high-temperature superconductor YBa2Cu3O7−δ