Optimal discretization of stochastic integrals driven by general Brownian semimartingale