Interaction mechanism of magnesium ions with cassiterite and quartz surfaces and its response to flotation separation