Impedance matching of a frequency- and pattern-reconfigurable antenna