Optimal arrangement for through-holes in a three-dimensional thin-film battery