Domain-decomposed Bayesian inversion based on local Karhunen-Loève expansions