Newton-Okounkov polyhedra for character varieties and configuration spaces