Gradient theory modeling of surface tension for pure fluids and binary mixtures