A boundary integral formulation and 2D fundamental solutions for piezoelectric media