Stabilized density gradient theory algorithm for modeling interfacial properties of pure and mixed systems