Control of electrical resistance and magnetoresistance by electric-field-driven oxygen ion migration in a single GdOx wire