Integrated production of fresh water, sea salt and magnesium from sea water