Generalizations of Ostrowski's Theorem