Recovery of magnesium from RO concentrate for struvite production