Investigations of the forces of interaction of surfaces in different media and their application to the problem of colloid stability