Gravar-mail: Cooperativity, connectivity, and folding pathways of multidomain proteins