Atomistic-simulation study of cation dopants in YBa2Cu4O8.