Analysis of fractures in 3D piezoelectric media by a weakly singular integral equation method