A difference-of-convex approach for log-determinant semidefinite programming with chordal sparsity