New Grüss’ type inequalities for functions of bounded variation and applications