The solution chemistry of carbonate and implications for pyrite flotation