Binding of magnesium and calcium ions to the phosphoglycoprotein phosvitin.