Copper NQR and NMR in the superconductor YBa2Cu4O8+x