Control of grinding conditions in the flotation of chalcopyrite and its separation from pyrite