Geochemistry and origin of formation waters in the western Canada sedimentary basin—III. Factors controlling chemical composition