Bullen-Mercer type inequalities with applications in numerical analysis