Characterization of piezoelectric composites with mechanical and electrical imperfect contacts