Synthesis of multiport networks consisting of arbitrarily coupled resonators