Disorders of calcium and magnesium balance: a physiology-based approach