Multiport scattering analysis of general multilayered printed antennas fed by multiple feed ports. I. Theory