A stable SPH discretization of the elliptic operator with heterogeneous coefficients