A generalized solution to a class of printed circuit antennas