What can cause a magnesium deficiency