Critical current density and flux creep in epitaxial YBa2Cu3O7−x thin films