Ba nuclear quadrupole resonance study of YBa2Cu4O8