A boundary integral equation method for a class of crack problems in anisotropic elasticity