Green's functions and boundary element method formulation for 3D anisotropic media