Representations of even-cycle and even-cut matroids