Cu and Y NQR and NMR in the superconductor YBa2Cu3O7−δ