Optimal a priori error estimates for the hp-version of the local discontinuous Galerkin method for convection--diffusion problem