Effective impedance modeling of metamaterial structures