Multifunctional application of nonlinear metamaterial with two-dimensional bandgap