Molecular connectivity methods for the characterization of surface energetics of liquids and polymers