how to use food to get magnesium