Molecular Modeling At Interfaces: Phase Equilibria Of Complex Fluids, And Mechanical Properties Of Nanostructures