Structure of the liquid/vapour and liquid/solid interfaces