Some companions of Ostrowski's inequality for absolutely continuous functions and applications