the function of a flotation cell in mining