Electromagnetic coupling between wires and loops inside a rectangular cavity using multiple-mode transmission line theory