Text this: Effect of magnesium salt contamination on the behavior of drilling fluids