Higher-order numerical scheme for linear quadratic problems with bang–bang controls