Graphs of Groups on Surfaces