Analysis of mechanical and electrical imperfect contacts in piezoelectric composites