Zn and Ga substitution in superconducting YBa2Cu4O8