Accurate calculations in drug discovery research: the biological roles of magnesium and calcium ions