Surface precipitation of inorganics and surfactants and its role in adsorption and flotation