Stability and collapse of monolayers of stearic acid and the effect of electrolytes in the subphase