Ostrowski and Jensen type inequalities for higher derivatives with applications