Analysis of common-mode resonances in arrays of connected dipoles and possible solutions