An iterative approach for analyzing cracks in two-dimensional piezoelectric media with exact boundary conditions