Two-post-Newtonian approximation of the scalar-tensor theory with an intermediate-range force for general matter