New Wendroff type inequalities for discontinuous functions and its applications