Optimal a posteriori error estimates of the local discontinuous Galerkin method for convection-diffusion problems in one space dimension