Computing edge-connectivity in multigraphs and capacitated graphs