On Simpson''s quadrature formula for mappings of bounded variation and applications