New generalization of perturbed Ostrowski type inequalities and applications