Electrical resistivity of YBa2Cu3O7−δ single crystals as a function of temperature and magnetic field