my husband is having trouble passing kidney stones & they prescribed pain pills & magnesium oxide. Why is magnesium oxide prescribed?