Trees of polyhedra and boundaries of groups