An inexact successive quadratic approximation method for a class of difference-of-convex optimization problems